<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
	<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" 
                                                  prefix="fn" %>
<%@ include file="/pages/common/taglibs.jsp"%>
<!--[if IE 6]><div id="ie6" class="ie"><![endif]-->
<!--[if IE 7]><div id="ie7" class="ie"><![endif]-->
<%-- <tiles:insertAttribute name="header" />
	<div class="main fix">
		<tiles:insertAttribute name="content" />
	</div>
	<tiles:insertAttribute name="footer" /> --%>
<!--[if lte IE 7]></div><![endif]-->
<script type="text/javascript"
	src="${ctx}/pages/templete/js/validate/expay_new/pay.js"></script>
<script type="text/javascript">

  var ctx = '${ctx}';
</script>	
	
<form:form id='payForm' name="payForm" action="${ctx}/expaynew/apiSubmit.do"
	method="post" target="_blank">
	
	<table width="100%">

		<tr>
			<td width="30%" align=right>交易代码:</td>
			<td align=left width="45%">&nbsp;&nbsp;<input type="text"
				id="tranCode" name="tranCode" value="8801" size="50" />
			</td>
			<td width="25%" align=left><font color=red>*</font><span
				id="tranCodeTip"></span>
			</td>
		</tr>
		<tr>
			<td width="30%" align=right>商户ID:</td>
			<td align=left width="45%">&nbsp;&nbsp;<input type="text"
				id="merchantID" name="merchantID" value="${payInfo.merchantID}"
				size="50" />
			</td>
			<td width="25%" align=left><font color=red>*</font><span
				id="merchantIDTip"></span>
			</td>
		</tr>
		<tr>
			<td width="30%" align=right>商户订单号:</td>
			<td align=left width="45%">&nbsp;&nbsp;<input type="text"
				id="merOrderNum" name="merOrderNum" value="" size="50" />
			</td>
			<td width="25%" align=left><font color=red>*</font><span
				id="merOrderNumTip"></span>
			</td>
		</tr>
		<tr>
			<td width="30%" align=right>交易金额:</td>
			<td align=left width="45%">&nbsp;&nbsp;<input type="text"
				id="tranAmt" name="tranAmt" value="0.01" size="50" />
			</td>
			<td width="25%" align=left><font color=red>*</font><span
				id="tranAmtTip"></span>
			</td>
		</tr>
		<!-- <tr>
			<td width="30%" align=right>提留金:</td>
			<td align=left width="45%">&nbsp;&nbsp;<input type="text"
				id="feeAmt" name="feeAmt" value="" size="50" />
			</td>
			<td width="25%" align=left></td>
		</tr> -->
		<tr>
			<td width="30%" align=right>币种:</td>
			<td align=left width="45%">&nbsp;&nbsp;<input type="text"
				id="currencyType" name="currencyType"
				value="${payInfo.currencyType}" size="50" />
			</td>
			<td width="25%" align=left><font color=red>*</font><span
				id="currencyTypeTip"></span>
			</td>
		</tr>
		<tr>
			<td width="30%" align=right>交易时间:</td>
			<td align=left width="45%">&nbsp;&nbsp;<input type="text"
				id="tranDateTime" name="tranDateTime"
				value="${payInfo.tranDateTime}" size="50" />
			</td>
			<td width="25%" align=left><font color=red>*</font><span
				id="tranDateTimeTip"></span>
			</td>
		</tr>
		<tr>
			<td width="30%" align=right>国付宝服务器时间:</td>
			<td align=left width="45%">&nbsp;&nbsp;<input type="text"
				id="gopayServerTime" name="gopayServerTime"
				value="${payInfo.tranDateTime}" size="50" />
			</td>
			<td width="25%" align=left></td>
		</tr>
		<tr>
			<td width="30%" align=right>国付宝转入账户:</td>
			<td align=left width="45%">&nbsp;&nbsp;<input type="text"
				id="virCardNoIn" name="virCardNoIn" value="${payInfo.virCardNoIn}"
				size="50" />
			</td>
			<td width="25%" align=left><font color=red>*</font><span
				id="virCardNoInTip"></span>
			</td>
		</tr>
		<tr>
			<td width="30%" align=right>用户浏览器IP:</td>
			<td align=left width="45%">&nbsp;&nbsp;<input type="text"
				id="tranIP" name="tranIP" value="${payInfo.tranIP}" size="50" />
			</td>
			<td width="25%" align=left><font color=red>*</font><span
				id="tranIPTip"></span>
			</td>
		</tr>

		<tr>
			<td width="30%" align=right>版本号:</td>
			<td align=left width="45%">&nbsp;&nbsp;
			<select id="version" name="version" style="width: 60%" >
				<option value="3.0" selected="selected">3.0</option>
			</select>
			</td>
			<td width="25%" align=left><font color=red>*</font><span
				id="versionTip"></span>
			</td>
		</tr>
		<tr>
			<td width="30%" align=right>字符集:</td>
			<td align=left width="45%">&nbsp;&nbsp;<input type="text"
				id="charset" name="charset" value="1" size="50" />
			</td>
			<td width="25%" align=left></td>
		</tr>
		<tr>
			<td width="30%" align=right></td>
			<td align=left width="45%">&nbsp;&nbsp;1:GBK,2:UTF-8 (不填则当成1处理)
				<td width="25%" align=left></td>
		</tr>
		<tr>
			<td width="30%" align=right>语言种类:</td>
			<td align=left width="45%">&nbsp;&nbsp;<input type="text"
				id="language" name="language" value="1" size="50" />
			</td>
			<td width="25%" align=left><font color=red>*</font><span
				id="languageTip"></span>
			</td>
		</tr>
		<tr>
			<td width="30%" align=right></td>
			<td align=left width="45%">&nbsp;&nbsp;1:ZH,2:EN
				<td width="25%" align=left></td>
		</tr>
		<tr>
			<td width="30%" align=right>签名类型:</td>
			<td align=left width="45%">&nbsp;&nbsp;<input type="text"
				id="signType" name="signType" value="1" size="50" />
			</td>
			<td width="25%" align=left></td>
		</tr>
		<tr>
			<td width="30%" align=right></td>
			<td align=left width="45%">&nbsp;&nbsp;1:MD5,2:SHA,3:API
				<td width="25%" align=left></td>
		</tr>
		<tr>
			<td width="30%" align=right>商户服务器后台通知地址:</td>
			<td align=left width="45%">&nbsp;&nbsp;<input type="text"
				id="backgroundMerUrl" name="backgroundMerUrl"
				value="${fn:replace(pageContext.request.requestURL,'WEB-INF/pages/layout_webtest.jsp','result/webclient/background.do')}" size="50" />
			</td>
			<td width="25%" align=left><font color=red>*</font><span
				id="backgroundMerUrlTip"></span>
			</td>
		</tr>

		<tr>
			<td width="30%" align=right>商品名称:</td>
			<td align=left width="45%">&nbsp;&nbsp;<input type="text"
				id="goodsName" name="goodsName" value="" size="50" />
			</td>
			<td width="25%" align=left></td>
		</tr>
		<tr>
			<td width="30%" align=right>商品描述:</td>
			<td align=left width="45%">&nbsp;&nbsp;<input type="text"
				id="goodsDetail" name="goodsDetail" value="" size="50" />
			</td>
			<td width="25%" align=left></td>
		</tr>
		<tr>
			<td width="30%" align=right>商户备用字段1:</td>
			<td align=left width="45%">&nbsp;&nbsp;<input type="text"
				id="merRemark1" name="merRemark1" value="快捷支付api支付测试" size="50" />
			</td>
			<td width="25%" align=left></td>
		</tr>
		<tr>
			<td width="30%" align=right>商户备用字段2:</td>
			<td align=left width="45%">&nbsp;&nbsp;<input type="text"
				id="merRemark2" name="merRemark2" value="" size="50" />
			</td>
			<td width="25%" align=left></td>
		</tr>

		<tr>
			<td width="30%" align=right>订单禁止重复提交标志:</td>
			<td align=left width="45%">&nbsp;&nbsp;<input type="text"
				id="isRepeatSubmit" name="isRepeatSubmit" value="1" size="50" />
			</td>
			<td width="25%" align=left></td>
		</tr>
		<tr>
			<td width="30%" align=right></td>
			<td align=left width="45%">&nbsp;&nbsp;0:不允许,1:允许 (不填则当成1处理)</td>
			<td width="25%" align=left></td>
		</tr>

		<tr>
			<td width="30%" align=right>终端来源:</td>
			<td align=left width="45%">&nbsp;&nbsp;
				<select id="terminalSource" name="terminalSource">
			  	 <option value="0">PC</option>
			     <option value="1">PHONE</option>
			      <option value="2">OTHER</option>
			  </select>	
				
			</td>
			<td width="25%" align=left><span
				id="terminalSourceTip"></span>
			</td>
		</tr>
		
		<tr>
			<td width="30%" align=right>姓名:</td>
			<td align=left width="45%">&nbsp;&nbsp;<input type="text"
				id="buyerRealName" name="buyerRealName" value="" size="50" />
			</td>
			<td width="25%" align=left><font color=red>*</font><span
				id="buyerRealNameTip"></span>
			</td>
		</tr>
		
		<tr>
			<td width="30%" align=right>身份证:</td>
			<td align=left width="45%">&nbsp;&nbsp;<input type="text"
				id="buyerRealCertNo" name="buyerRealCertNo" value="" size="50" />
			</td>
			<td width="25%" align=left><font color=red>*</font><span
				id="buyerRealCertNoTip"></span>
			</td>
		</tr>
		
		<tr>
			<td width="30%" align=right>银行卡号:</td>
			<td align=left width="45%">&nbsp;&nbsp;<input type="text"
				id="buyerRealBankAcctNum" name="buyerRealBankAcctNum" value="" size="50" />
			</td>  
			<td width="25%" align=left><font color=red>*</font><span
				id="buyerRealBankAcctNumTip"></span>
			</td>
		</tr>
		<tr>
			<td width="30%" align=right>手机号:</td>
			<td align=left width="45%">&nbsp;&nbsp;<input type="text"
				id="buyerRealMobile" name="buyerRealMobile" value="" size="50" />
			</td>
			<td width="25%" align=left><font color=red>*</font><span
				id="buyerRealMobileTip"></span>
			</td>
		</tr>
		
		<tr>
			<td width="30%" align=right>证件类型:</td>
			<td align=left width="45%">&nbsp;&nbsp;<input type="text"
				id="certificateType" name="certificateType" value="01" size="50" />
			</td>
			<td width="25%" align=left><font color=red>*</font><span
				id="certificateTypeTip"></span>
			</td>
		</tr>
		
		<tr>
			<td width="30%" align=right>银行卡类型:</td>
			<td align=left width="45%">&nbsp;&nbsp;
			  <select id="bankCardType" name="bankCardType">
			  	 <option value="0">借记卡</option>
			     <option value="1">贷记卡</option>
			  </select>	
			</td>
			<td width="25%" align=left><font color=red>*</font><span
				id="bankCardTypeTip"></span>
			</td>
		</tr>
		
		<tr>
			<td width="30%" align=right>信用卡有效期:</td>
			<td align=left width="45%">&nbsp;&nbsp;
			  <input type="text"
				id="creditCardExpired" name="creditCardExpired" size="50" />
			</td>
			<td width="25%" align=left><font color=red>*</font><span
				id="creditCardExpiredTip"></span>
			</td>
		</tr>
		
		<tr>
			<td width="30%" align=right>cvn2:</td>
			<td align=left width="45%">&nbsp;&nbsp;
			  <input type="text"
				id="cvn2" name="cvn2" size="50" />
			</td>
			<td width="25%" align=left><font color=red>*</font><span
				id="cvn2Tip"></span>
			</td>
		</tr>
		
		
		<tr>
			<td width="30%" align=right>银行代码:</td>
			<td align=left width="45%">&nbsp;&nbsp;<input type="text"
				id="bankCode" name="bankCode" value="TBANK" size="50" />
			</td>
			<td width="25%" align=left><font color=red>*</font><span
				id="bankCodeTip"></span>
			</td>
		</tr>
		
		<tr>
			<td width="30%" align=right>商户识别码:</td>
			<td align=left width="45%">&nbsp;&nbsp;
			
			<input type="text" id="verficationCode" name="verficationCode"
		value="${sessionScope.gopay_webtest_key}" size="50" />
			
			</td>
			<td width="25%" align=left><font color=red>*</font>
			</td>
		</tr>
		
		<tr>
			<td width="30%" align=right>国付宝订单ID:</td>
			<td align=left width="45%">
			<input type="text" id="orderId" name="orderId" />&nbsp;&nbsp;填写此ID标识重发短信操作
			</td>
			<td width="25%" align=left>
			</td>
		</tr>

		<tr> <td colspan="3">
			<table width="100%">
				<tr>
					<td colspan=2>&nbsp;
						<td width="25%" align=left></td>
				</tr>
				<tr>
					<td colspan=2 width="100%"><center>
							<input type="button" value="设置默认值" id="defButton" name="defButton">&nbsp;&nbsp;&nbsp;&nbsp;
							<input type="button" name="submitBtn" id="submitBtn" value="获取验证码" />&nbsp;&nbsp;&nbsp;&nbsp;
							<input type="button" name="backNotify" onclick="$('#openWait').parents('a').attr('href', ctx + '/expaynew/payWait.do');$('#openWait').click();" id="backNotify" value="后台通知" />
						</center>
					</td>
				</tr>
				
			</table></td></tr>
	
	</table>
</form:form>
<a target="_blank" href="${ctx }/expaynew/payWait.do" style="visibility: hidden;">
<span id="openWait">aa</span> 
</a> 
